﻿@{
    ViewBag.Title = "DataShareForm";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    $(function () {
        //查询-1
        $("#btn_selectTop").click(function () {
            if (!$('#form1').formValid()) {
                return false;
            }
            var txtUserName1 = $("#userName1").val();
            var txtIDNumber1 = $("#IDNumber1").val();
            $.submitForm({
                url: "/Gas/Apply/GetHouseExisInfor?username=" + txtUserName1 + "&idnumber=" + txtIDNumber1,
                success: function (data) {
                    var resultJson = JSON.stringify(data.data);
                    $("#result").val(resultJson);
                }
            });
        });

         //查询-2
        $("#btn_selectMid").click(function () {
            if (!$('#form2').formValid()) {
                return false;
            }
            var txtUserName2 = $("#userName2").val();
            var txtIDNumber2 = $("#IDNumber2").val();
            var Address2 = $("#Address2").val();
            $.submitForm({
                url: "/Gas/Apply/GetAddressExisInfor?username=" + txtUserName2 + "&idnumber=" + txtIDNumber2 + "&address=" + Address2,
                success: function (data) {
                    var resultJson = JSON.stringify(data.data);
                    $("#result").val(resultJson);
                }
            });
        });

        //查询-3
        $("#btn_selectBom").click(function () {
            if (!$('#form3').formValid()) {
                return false;
            }
            var txtIDNumber3 = $("#IDNumber3").val();
            $.submitForm({
                url: "/Gas/Apply/GetContractInfor?idnumber=" + txtIDNumber3,
                success: function (data) {
                    var resultJson = JSON.stringify(data.data);
                    $("#result").val(resultJson);
                }
            });
        });
    });
</script>
<style>
    .myWidth {
        width: 500px !important;
    }

    .titileWidth {
        width: 250px !important;
    }

    .myTable {
        width: 790px !important;
    }
</style>
<div class="wrapper">
    <form id="form1">
        <div style="padding-top: 20px; margin-right: 20px;">
            <table class="form myTable">
                <tr>
                    <th class="formTitle titileWidth">查询-1</th>
                    <td class="formValue">
                        <label class="form-control myWidth" style="color:#FF0000;background-color: aquamarine;font-size: 16px;">国土-根据姓名和身份证号查询是否存在不动产</label>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">姓名（可为空）</th>
                    <td class="formValue">
                        <input id="userName1" name="userName1" type="text" class="form-control myWidth" placeholder="请输入姓名" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">身份证号</th>
                    <td class="formValue">
                        <input id="IDNumber1" name="IDNumber1" type="text" class="form-control myWidth required" placeholder="请输入身份证号" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div style="margin-top:5px">
    <div>
        <a id="btn_selectTop" class="btn btn-primary"><i class="fa fa-save" style="margin-right:5px;"></i>查询</a>
    </div>
</div>

<div class="wrapper" style="margin-top:50px">
    <form id="form2">
        <div style="padding-top: 20px; margin-right: 20px;">
            <table class="form myTable">
                <tr>
                    <th class="formTitle titileWidth">查询-2</th>
                    <td class="formValue">
                        <label class="form-control myWidth" style="color:#FF0000;background-color: aquamarine;font-size: 16px;">国土-根据姓名、身份证证号、不动产地址，查询是否存在匹配信息</label>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">姓名（可为空）</th>
                    <td class="formValue">
                        <input id="userName2" name="userName2" type="text" class="form-control myWidth" placeholder="请输入姓名" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">身份证号</th>
                    <td class="formValue">
                        <input id="IDNumber2" name="IDNumber2" type="text" class="form-control myWidth required" placeholder="请输入身份证号" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">地址</th>
                    <td class="formValue">
                        <input id="Address2" name="Address2" type="text" class="form-control myWidth required" placeholder="请输入地址" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div style="margin-top:5px">
    <div>
        <a id="btn_selectMid" class="btn btn-primary"><i class="fa fa-save" style="margin-right:5px;"></i>查询</a>
    </div>
</div>

<div class="wrapper" style="margin-top:50px">
    <form id="form3">
        <div style="padding-top: 20px; margin-right: 20px;">
            <table class="form myTable">
                <tr>
                    <th class="formTitle titileWidth">查询-3</th>
                    <td class="formValue">
                        <label class="form-control myWidth" style="color:#FF0000;background-color: aquamarine;font-size: 16px;">房管-根据身份证证号查询该人员的商品房合同备案信息</label>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">身份证号</th>
                    <td class="formValue">
                        <input id="IDNumber3" name="IDNumber3" type="text" class="form-control myWidth required" placeholder="请输入身份证号" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div style="margin-top:5px">
    <div>
        <a id="btn_selectBom" class="btn btn-primary"><i class="fa fa-save" style="margin-right:5px;"></i>查询</a>
    </div>
</div>


<div class="wrapper" style="margin-top:50px">
        <div style="padding-top: 20px; margin-right: 20px;">
            <table class="form myTable">
                <tr>
                    <th class="formTitle titileWidth">结果</th>
                    <td class="formValue">
                        <textarea id="result" name="result" type="text" class="form-control myWidth" style="height:150px" disabled></textarea>
                    </td>
                </tr>
            </table>
        </div>
</div>